-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
store/tikv: add sanity check for startTS in 2pc #9555
Conversation
Signed-off-by: disksing <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related to #9283 |
@disksing Please fix the CI. |
Signed-off-by: disksing <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #9555 +/- ##
==========================================
- Coverage 67.37% 67.36% -0.02%
==========================================
Files 375 375
Lines 78779 78783 +4
==========================================
- Hits 53081 53075 -6
- Misses 20927 20935 +8
- Partials 4771 4773 +2
Continue to review full report at Codecov.
|
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
Signed-off-by: disksing [email protected]
What problem does this PR solve?
To avoid committing a transaction with MAX_UINT64 unexpectedly.
What is changed and how it works?
Sometimes (PointGet, Analyze) TiDB uses special startTS (MAX_UINT64) to initialize a transaction. This is dangerous because
txn.Commit()
may be called unexpectedly.Check List
Tests
Related changes